Print controlling system extracting image data inside print region when page size and record medium size agree

ABSTRACT

A print controlling apparatus is supplied capable of adjusting image of electronic document to an optimum size. In the print controlling apparatus which includes an inputting section for inputting image data of electronic document and an expanding section for expanding the inputted image data into print data, and is used for printing the electronic document onto record medium, a first obtaining section obtains page size information representing page size of the electronic document; a second obtaining section obtains medium size information representing medium size of the record medium; a comparing and judging section compares the page size information with the medium size information, and judges whether the two size information are coincident; and when the two size information are coincident, an extracting section extracts image data inside of region corresponding to print region of the record medium from the image data, wherein the expanding section expands the extracted image data inside of region and generates print data inside of region corresponding to the print region.

BACKGROUND OF THE INVENTION

1. Field of the Invention

The invention relates to a print controlling apparatus for controlling adirect print of electronic document.

2. Related Background Art

A print processing system is well known that is composed of an upperapparatus such as personal computer or the like, and a printingapparatus such as printer or the like that is connected to the upperapparatus. In the print processing system, in order to print electronicdocument such as PDF (Portable Document Format) file that is made byapplication, usually, printer driver is used in the upper apparatus.

The printer driver is software that operates in the upper apparatus forchanging the electronic document serving as print object into PageDescription Language (PDL) that can be interpreted by the printingapparatus. In the upper apparatus, after a print is instructed, theprinter driver sets medium size of record medium used in printing,magnification/reduction rate of image and the like; changes theelectronic document into PDL data; and sends the PDL data to theprinting apparatus.

Then, the printing apparatus, after interpreted the received PDL dataand expanded it into the print image data, performs print with respectto every page by using record medium whose medium size was set. That is,the printing apparatus forms respective print images in print regions ofrespective record mediums so as to execute printing process.

However, in such method of the printing process using the printer driverstated above, because the electronic document must be changed into PDLdata in the upper apparatus, so there is a problem that it is necessaryto spend a lot of time and labor.

In order to solve this kind of problem, in a patent document 1 mentionedbelow, a technology is disclosed that relates to a direct print functionof printing apparatus that receives and prints electronic document fromupper apparatus in an unchanged form. This kind of printing apparatuscomprises a controller unit and a printing section that constitute aprint controlling device.

The controller unit edits the electronic document that is received fromthe upper apparatus, expands it into print image data; and selects arecord medium on the basis of the medium size that is designated by theapplication of the upper apparatus. Then, the printing section forms aprint image in print region of record medium that was selected. Thus,the direct print of the electronic document is executed.

Patent document 1: Japan patent publication 2007-257592.

However, in the direct print of the printing apparatus stated above,until now, size of image of electronic document is adjusted so that pagesizes (medium size region) of respective pages become region sizes ofprint regions of record mediums. Therefore, when record medium is usedwhose size is the same as page size (designation medium size) ofelectronic document, there is a problem that the image of electronicdocument will be reduced to correspond to region size of print region.

Therefore, a print controlling apparatus is desired capable of adjustingimage of electronic document to an optimum size.

SUMMARY OF THE INVENTION

It is, therefore, an object of the invention to provide a printcontrolling apparatus capable of solving the above problem.

An aspect of the invention is to provide a print controlling apparatuswhich includes an inputting section for inputting image data ofelectronic document and an expanding section for expanding the inputtedimage data into print data, and is used for printing the electronicdocument onto record medium, comprising:

a first obtaining section that obtains page size informationrepresenting page size of the electronic document;

a second obtaining section that obtains medium size informationrepresenting medium size of the record medium;

a comparing and judging section that compares the page size informationwith the medium size information that were obtained, and judges whetheror not the page size information agrees with the medium sizeinformation; and

an extracting section that, when the page size information is judged toagree with the medium size information, extracts image data inside ofregion corresponding to print region of the record medium from the imagedata,

wherein the expanding section expands the extracted image data inside ofregion, and generates print data inside of region corresponding to theprint region.

Effect Of The Invention

According to the invention, when page size of electronic document(designation medium size) agrees with medium size of record medium, fromimage data of electronic document, image data inside of region thatcorresponds to print region of record medium is extracted, and isexpanded into print data inside of region. Therefore, an unnecessaryreduction of the electronic document is prevented, and it is possible toprint in a desirable size, so that convenience is improved.

The above and other objects and features of the present invention willbecome apparent from the following detailed description and the appendedclaims with reference to the accompanying drawings.

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 is a block diagram showing a structure of a printer comprising acontroller unit in embodiment 1 of the present invention;

FIG. 2 is a diagram showing an example of PDF file;

FIG. 3 is a diagram showing a displaying example of page image based onPDF file;

FIG. 4 is an explanation diagram showing a structure of paper listtable;

FIG. 5 is a flow chart for explaining a page size obtaining operation ofcontroller unit of the present invention;

FIG. 6 is a flow chart for explaining a fed-paper size obtainingoperation of controller unit of the present invention;

FIG. 7 is a flow chart for explaining an analyzing and editing operationin embodiment 1 of controller unit of the present invention;

FIG. 8 is a flow chart for explaining an extraction making operation inembodiment 1 of controller unit of the present invention;

FIG. 9 is a diagram for explaining an extraction making process of imagedata in embodiment 1;

FIG. 10 is a flow chart for explaining a magnification/reduction makingoperation in embodiment 1 of controller unit of the present invention;

FIG. 11 is a diagram for explaining a magnification/reduction makingprocess of image data in embodiment 1;

FIG. 12 is a flow chart for explaining a setting making operation ofcontroller unit of the present invention;

FIG. 13 is a flow chart for explaining a direct print operation inembodiment 1 of printer comprising a controller unit of the presentinvention;

FIG. 14 is block diagram showing a structure of a printer comprising acontroller unit of embodiment 2 of the present invention;

FIG. 15 is a flow chart for explaining an analyzing and editingoperation in embodiment 2 of controller unit of the present invention;

FIG. 16 is a diagram for explaining a making process to make data fromimage data to print intermediate data in embodiment 2;

FIG. 17 is a flow chart for explaining a magnification/reduction makingoperation in embodiment 2 of controller unit of the present invention;

FIG. 18 is a flow chart for explaining a confirming operation inembodiment 2 of controller unit of the present invention;

FIG. 19 is a diagram showing a setting example of confirmation region;

FIG. 20 is a flow chart for explaining direct print operation inembodiment 2 of printer comprising controller unit of the presentinvention;

FIG. 21 is a diagram for explaining an extracting process of print imagedata in embodiment 2;

FIG. 22 is a flow chart for explaining a reducing operation ofcontroller unit of the present invention; and

FIG. 23 is a diagram for explaining a reducing process of print imagedata in embodiment 2.

DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

Embodiments of the invention will be described in detail hereinbelowwith reference to the drawings.

Here, it is to explain an example in the case that a print controllingapparatus of the present invention is applied to a controller section ofa printer on which a direct print function is installed.

<Embodiment 1>

FIG. 1 is a block diagram showing a structure of a printer comprising acontroller unit in embodiment 1 of the present invention.

A printer 10 of the present embodiment is connected to a host computer11, receives PDF (Portable Document Format) file from the host computer11, and executes printing process.

The host computer 11, as shown by FIG. 1, is connected to the printer 10as an upper apparatus. The host computer 11 has a function of making PDFfile as electronic document to drive application.

FIG. 2 is a diagram showing an example of PDF file.

In the PDF file, one page part of image data at least, and informationwith respect to page setting in the case of scene displaying of theimage data and printing are contained. For example, in the PDF file thatis shown by FIG. 2, four numerical values “x1”, “y1”, “x2”, “y2” as pageinformation continues to letter row “/MediaBox”, and is buried in a formof numerical value box “[x1 y1 x2 y2]”.

FIG. 3 is a diagram showing a displaying example of page image based onPDF file.

In the FIG. 3, a page image 30, for example, is displayed on a scene ofthe host computer 11 on the basis of image data that is contained in thePDF file.

The page image 30, as shown by FIG. 3, is formed from a rectangularregion having four top points “30A”, “30B”, “30C” and “30D”. In the pageimage 30, for example, when a straight line that connects the top point“30C” of the left and underneath with the top point “30D” of the rightand underneath is regarded as x coordinate axis, and a straight linethat connects the top point “30C” with the top point “30A” of the leftand upper is regarded as y coordinate axis, the coordinate of the toppoint “30C” is displayed by (x1, y1)=(0, 0), and the coordinate of thetop point “30B” is displayed by (x2, y2). That is, in the page image 30,the coordinate value of the top point “30C” of the left and underneathand the coordinate value of the top point “30B” of the right and upperare obtained as page information, and is buried in the PDF file.

These page information “x1”, “y1”, “x2” and “y2” are numerical valuesthat are used in calculation of page size information representing pagesizes of respective pages. The page size information is composed of pagewidthwise size information “x” representing page size of widthwisedirection and page lengthwise size information “y” representing pagesize of lengthwise direction. The page widthwise size information “x”and the page lengthwise size information “y” are calculated on the basisof calculation formula x=x2−x1 and y=y2−y1 respectively. In the PDF fileshown by FIG. 2, the page information x1=0.0, y1=0.0, x2=595.44 andy2=841.68 is buried, and then the page size information that iscalculated on the basis of these becomes page widthwise size informationx=595.44 and page lengthwise size information y=841.68.

Moreover, in the present embodiment, numerical value unit of respectivepage information and page size information is any of point, and the pagesize of the PDF file that is shown by FIG. 2 corresponds to A4 size.

Further, the host computer 11 is possible to perform the page setting inthe case of printing process. Here, the page setting that is performedin the host computer 11 contains such as setting of paper using inprinting process and setting of print region and the like. For example,in the page image 30 that is shown by FIG. 3, the rectangular regionhaving four top points “30A”, “30B”, “30C” and “30D” prescribe a pagesize. Furthermore, in the FIG. 3, the rectangular region having four toppoints “30A”, “30B”, “30C” and “30D” is set as a setting region 31. Whenthe setting region 31 is set as a print region in the host computer 11,the printer forms image in the setting region 31 in the page image 30,and executes printing process.

When this kind of page setting is performed, the host computer 11regards the print region as setting region information that is set, andinputs coordinate (x3, y3) of left and underneath top point “31 c” ofthe setting region 31 and coordinate (x4, y4) of right and upper toppoint “31 b”. These setting region information continues to letter row“/CropBox”, and is buried in a form of numerical value box “[x3 y3 x4y4]” in the PDF file that is shown by FIG. 2. Moreover, in the hostcomputer 11, when the page setting is not performed, in the numericalvalue box continuing after the letter row “/CropBox”, as shown by FIG.2, four page information “x1”, “x2”, “x3” and “x4” is buried.

In the present embodiment, numerical value unit of setting regioninformation is any of point.

The host computer 11 is also possible to perform page setting withrespect to print size besides setting the print region stated above, butexplanation is omitted in the present embodiment.

Furthermore, the host computer 11 generates a direct print instructionfor instructing a direct print on the basis of an inputting from aninputting section (not shown). Then, the direct print instruction andthe PDF file are sent to the printer 10.

The printer 10 is a print apparatus on which a direct print function isinstalled, as shown by FIG. 1, comprises a controller unit 12, an enginesection 13 and a paper feeding tray 14.

The paper feeding tray 14 is installed on the engine section 13, andaccommodates paper as record medium. In the present embodiment, onepaper feeding tray 14 is installed on the engine section 13 of theprinter 10.

The engine section 13 detects size of paper that is accommodated in thepaper feeding tray 14 as fed-paper size on the basis of a size detectioninstruction (stated later) from the controller unit 12, and informs thecontroller unit 12 of the fed-paper size information representing thefed-paper size. Further, the engine section 13, after received a printinstruction and print image data (stated later) from the controller unit12, forms print image on the paper on the basis of the print image data;and executes a print.

The controller unit 12, as a print controlling apparatus of the presentembodiment, as shown by FIG. 1, comprises a receiving section 15, areceiving buffer 16, a editing section 17, an intermediate data buffer22, an expanding section 23, an image data buffer 24, an enginecontrolling section 25, a paper list table 26, a first obtaining section27, a second obtaining section 28 and a comparing and judging section29.

The receiving section 15 has a function of receiving direct printinstruction and PDF file from the host computer 11. The receivingsection 15 stores the received PDF file in the receiving buffer 16; andsends the received direct print instruction to the editing section 17.

The receiving buffer 16 is a temporarily storing section in which thereceived PDF file is temporarily stored by the receiving section 15.

The editing section 17, as shown by FIG. 1, has an analyzing portion 10,an adjusting portion 19, a calculating portion 20 and a making portion21; and is a processing section to perform an analyzing and editingprocess of the PDF file.

The analyzing portion 18, after received the direct print instructionfrom the receiving section 15, reads out the PDF file from the receivingbuffer 16; analyzes the PDF file; and judges existence/inexistence ofpage setting.

In the present embodiment, the analyzing portion 18 searches the letterrow “/MediaBox” and the letter row “/CropBox” in the PDF file, andcompares numerical value in the respective numerical value box “[x1 y1x2 y2]” and “[x3 y3 x4 y4]” that continue to these respective letterrows. Then, when respective numerical values are coincident that iscontained in respective numerical value boxes, that is, four equationsx1=x3, y1=y3, x2=x4 and y2=y4 are all met, the analyzing portion 18judges that the page setting has not been performed in the host computer11, that is, adjustment of the image size is necessary, and instructsthe adjusting portion 19 to adjust the image data in order.

Further, when any of the respective equations stated above is not met,the analyzing portion 18 judges that the page setting has been performedin the host computer 11, that is, adjustment of the image size isunnecessary. Then the analyzing portion 18 performs size setting ofprint region, and instructs the making portion 21 to make the PDF file.

The adjusting portion 19 instructs the comparing and judging section 29to compare the page size (designation medium size) of the PDF file thatbecomes print object with the size of paper that is paper fed, and judgethem for performing the adjustment of the image size. Then, on the basisof the judgment result, with respect to the calculating portion 20 andthe making portion 21, an instruction is performed.

The calculating portion 20 has a function of calculatingmagnification/reduction rate information for magnifying or reducing theimage data that is contained in the PDF file.

The making portion 21 makes the image data that is contained in the PDFfile, and has a function of generating print intermediate data. Themaking portion 21 stores the print intermediate data in the intermediatedata buffer 22; and instructs the expanding section 23 to expand theprint intermediate data.

Further, the making portion 21 extracts the image data-inside of regionfrom the image data that is contained in the PDF file as an extractingsection on the basis of the informed of print region size informationfrom the adjusting portion 19, and generates print intermediate data.Furthermore, the making portion 21 magnifies/reduces the image data intomagnification/reduction image data as a magnification/reductiongenerating section on the basis of the informed ofmagnification/reduction rate information from the calculating portion20, and generates print intermediate data.

The intermediate data buffer 22 is a temporarily storing section inwhich the print intermediate data is temporarily stored that is made andgenerated by the editing section 17.

The expanding section 23 reads out the print intermediate data from theintermediate data buffer 22 on the basis of expansion instruction fromthe editing section 17, and performs the expansion to the print imagedata of the print intermediate data. Then, the expanding section 23stores the print image data in the image data buffer 24; and instructsthe engine controlling section 25 to start the print.

The image data buffer 24 is a temporarily storing section in which theprint image data is temporarily stored that is expanded and generated bythe expanding section 23.

The engine controlling section 25 has a function of communicating withthe engine section 13, reads out the print image data from the imagedata buffer 24 in order to start the print through the engine section 13on the basis of the print start instruction from the expanding section23, and sends the print image data and the print instruction to theengine section 13.

Further, the engine controlling section 25 sends a size detectioninstruction in order to detect size of paper, i.e. fed-paper size thatis accommodated in the paper feeding tray 14 to the engine section 13 onthe basis of the size detection instruction from the second obtainingsection 28 stated later. Then, when the fed-paper size informationrepresenting the fed-paper size is received from the engine section 13,the engine controlling section 25 informs the second obtaining section28 of the fed-paper size information.

The paper list table 26 is a storing section in which the paper sizeinformation representing size of paper capable of being used in theprinting process in the printer 10 has been set and stored previously.

FIG. 4 is an explanation diagram showing a structure of paper listtable.

In the paper list table 26, as shown by FIG. 4, a paper size item is setup that corresponds to paper distinguishment number for distinguishingrespective paper and is used for storing paper size information of thepaper. In the paper size item, as shown by FIG. 4, widthwise size itemand lengthwise size item are respectively set up, and paper widthwisesize information and paper lengthwise size information that arecontained in the paper size information are respectively stored inrespective items. Moreover, the paper widthwise size informationrepresents size of widthwise direction of the paper itself that isaccommodated in the paper feeding tray 14; and paper lengthwise sizeinformation represents size of lengthwise direction of the paper itself.The numerical value unit of respective information that is stored in thepaper size item is any of point in the present embodiment.

Further, in the paper list table 26, as shown by FIG. 4, a print regionitem is set up that corresponds to paper distinguishment number ofrespective paper and is used for storing print region size informationrepresenting size of print region of the paper. Here, the print regionrepresents a region capable of printing through the printer 10.

The printer usually cannot print in region of several millimeters andeven ten or more millimeters from end of paper. Therefore, respectiveprinters set the region as margin region; and sets part region exceptthe margin region of respective paper as print region, and then formsimage on the print region. In the print region size item of the paperlist table 26, in the printer 10, the print region size information isstored that represents size of print region that is set with respect torespective paper.

In the print region size item, as shown by FIG. 4, widthwise size itemand lengthwise size item are respectively set up, and print regionwidthwise size information and print region lengthwise size informationthat are contained in the print region size information are respectivelystored in respective items. Moreover, the print region widthwise sizeinformation represents size of widthwise direction of print region; andprint region lengthwise size information represents size of lengthwisedirection of print region. The numerical value unit of respectiveinformation that is stored in the print region size item is any of pointin the present embodiment.

For example, in the paper list table 26 that is shown by FIG. 4, paperwidthwise size information “595”, paper lengthwise size information“420”, print region widthwise size information “575” and print regionlengthwise size information “400” that correspond to paperdistinguishment number “0x00” are respectively stored. Further, paperwidthwise size information “595”, paper lengthwise size information“842”, print region widthwise size information “575” and print regionlengthwise size information “822” that correspond to paperdistinguishment number “0x01” are respectively stored.

Moreover, in the paper list table 26, respective size information thathas been set and corresponds to paper distinguishment number “0x00”corresponds to paper of A5 size; and

respective size information that has been set and corresponds to paperdistinguishment number “0x01” corresponds to paper of A4 size.

The first obtaining section 27, when reading out the PDF file (FIG. 2)from the receiving buffer 16, searches the letter row “/MediaBox” thatis contained in the PDF file. Then, the first obtaining section 27obtains four numerical values that are contained in the numerical valuebox “[x1 y1 x2 y2]” that is recorded and continue to the letter row, asrespective page information “x1”, “y1”, “x2” and “y2”. Next, the firstobtaining section 27 calculates and obtains page widthwise sizeinformation “x” and page lengthwise size information “y” on the basis ofthe respective page information that were obtained and the calculationformula x=x2−x1 and y=y2−y1.

For example, in the case of the PDF file that is shown by FIG. 2, thefirst obtaining section 27 detects and obtains page information x1=0.0,y1=0.0, x2=595.44 and y2=841.68. Then, the first obtaining section 27calculates and obtains page size information that is composed of pagewidthwise size-information x=595.44 and page lengthwise size informationy=841.68 on the basis of these.

The first obtaining section 27, after obtaining the page sizeinformation, refers to the paper list table 26 (FIG. 4), and comparesthe respective paper size information that has been stored with the pagesize information that was obtained. Then, the first obtaining section 27selects paper size information that agrees with page size information,and informs the comparing and judging section 29 of the paperdistinguishment number corresponding to the paper size information.Further, when the agreeing paper size information has not been set, thefirst obtaining section 27 informs the comparing and judging section 29of “corresponding number inexistence” as paper distinguishment number.

The second obtaining section 28 sends a size detection instruction tothe engine controlling section 25 in order to detect size of paper thathas been accommodated in the paper feeding tray 14 as a fed-paper size.Then, after the fed-paper size information representing fed-paper sizeis received from the engine controlling section 25, the second obtainingsection 28 refers to the paper list table 26 (FIG. 4), selects papersize information that agrees with the fed-paper size information, andobtains the corresponding paper distinguishment number. The secondobtaining section 28 informs the comparing and judging section 29 of theobtained paper distinguishment number. Further, when the agreeing papersize information has not been set, the second obtaining section 28obtains a default number that was set previously as paperdistinguishment number, and informs the comparing and judging section 29of it. In the present embodiment, the paper distinguishment number“0x01” has been set as the default number.

Furthermore, the second obtaining section 28 obtains print region sizeinformation corresponding to a specified paper distinguishment numberfrom the paper list table 26, and informs the editing section 17 of theprint region size information.

The comparing and judging section 29 compares the page size informationcorresponding to the PDF file that becomes the print object with thefed-paper size information corresponding to paper feeding tray 14, andhas a function of judging whether or not these are coincident.

The comparing and judging section 29, after received the comparison andjudgment instruction from the editing section 17, sends an obtaininginstruction to the first obtaining section 27 and the second obtainingsection 28. Then, the comparing and judging section 29 compares theinformed of paper distinguishment number from the first obtainingsection 27 with the informed of paper distinguishment number from thesecond obtaining section 28; according to whether or not the two paperdistinguishment numbers are coincident, judges whether or not the pagesize agrees with the fed-paper size and informs the editing section 17of the judgment result.

Next, it is to explain operation of the printer 10 of the presentembodiment.

Firstly, it is to perform an explanation about a flow of a page sizeobtaining process on which the first obtaining section 27 detects pagesize of image data, and obtains a corresponding paper distinguishmentnumber in the controller unit 12 of the printer 10 by using FIG. 5.

FIG. 5 is a flow chart for explaining a page size obtaining operation ofcontroller unit of the present invention.

Here, it is to explain an example in the case that the page size of thePDF file (FIG. 2) agrees with the paper size that has been set tocorrespond to the paper distinguishment number “0x01” in the paper listtable 26 (FIG. 4).

In the controller unit 12, when the comparing and judging section 29sends the obtaining instruction to the first obtaining section 27 inorder to obtain page size information of image data from the PDF file(FIG. 2), the first obtaining section 27 reads out the PDF file (FIG. 2)that has been stored in the receiving buffer 16. Then, the firstobtaining section 27 detects the numerical value box “[0.0 0.0 595.44841.68]” that continues to the letter row “/MediaBox” from the PDF file.Then, the first obtaining section 27 respectively obtains respectivenumerical values x1=0.0, y1=0.0, x2=595.44 and y2=841.68 as pageinformation from the numerical value box (Step S101). Furthermore, thefirst obtaining section 27 respectively calculates the page widthwisesize information x=x2−x1=595.44 and the page lengthwise size informationy=y2−y1=841.68 as page size information on the basis of the obtainedpage information (Step S101).

Next, the first obtaining section 27, firstly, initializes referencepointer of the paper list table 26 in order to refer to the paper listtable 26 (Step S102). In the paper list table 26 that is shown by FIG.4, the reference pointer is initialized at the position of the paperdistinguishment number “0x01” (Step S102).

Continuously, the first obtaining section 27 refers to the paper listtable 26, and reads out paper widthwise size information from widthwisesize item of paper size item corresponding to reference pointer (StepS103). The first obtaining section 27 reads out paper widthwise sizeinformation “595” from widthwise size item of paper size itemcorresponding to paper distinguishment number “0x00” (Step S103).

Then, the first obtaining section 27 compares the obtained pagewidthwise size information with the read out paper widthwise sizeinformation, and judges whether or not widthwise size of respectivepages of the PDF file agrees with widthwise size of paper that has beenset in the paper list table 26 (Step S104). In the present embodiment,the first obtaining section 27, when difference between page widthwisesize information and paper widthwise size information is within ±5points, judges whether or not widthwise size of page agrees withwidthwise size of paper. Here, because the page widthwise sizeinformation is 595.44, and the paper widthwise size information is 595,so these difference is within ±5 points. Therefore, the first obtainingsection 27 judges that the page widthwise size agrees with the paperwidthwise size (Step S104).

Next, the first obtaining section 27 refers to the paper list table 26,and reads out paper lengthwise size information from lengthwise sizeitem of paper size item corresponding to reference pointer (Step S105).The first obtaining section 27 reads out paper lengthwise sizeinformation “420” from lengthwise size item of paper size itemcorresponding to the paper distinguishment number “0x00” (Step S105).

Then, the first obtaining section 27 compares the obtained pagelengthwise size information with the read out paper lengthwise sizeinformation, and judges whether or not whether or not page lengthwisesize agrees with paper lengthwise size (Step S106). In the presentembodiment, the first obtaining section 27, when difference between pagelengthwise size information and paper lengthwise size information iswithin ±5 points, judges whether or not page lengthwise size agrees withpaper lengthwise size. Here, because the page lengthwise sizeinformation is 841.68, and the paper lengthwise size information is 420,so these difference is bigger than ±5 points. Therefore, the firstobtaining section 27 judges that the page lengthwise size does not agreewith the paper lengthwise size (Step S106).

As stated above, when it is judged that the page lengthwise size doesnot agree with the paper lengthwise size (Step S106), or, in the StepS104, when it is judged that the page widthwise size does not agree withthe paper widthwise size, the first obtaining section 27 updatesreference pointer of the paper list table 26 (Step S107). In the paperlist table 26 shown by FIG. 4, the reference pointer is updated from theposition of the paper distinguishment number “0x00” to the position ofthe paper distinguishment number “0x01” (Step S107).

Continuously, the first obtaining section 27 judges whether or not thepaper size information corresponding to the updated reference pointerhas been set in the paper list table (FIG. 4) (Step S108). In the paperlist table (FIG. 4), because the paper size information corresponding tothe paper distinguishment number “0x01” has been set, the firstobtaining section 27 judges that the paper size informationcorresponding to the updated reference pointer has been set (Step S108).

Continuously, the first obtaining section 27 reads out the paperwidthwise size information “595” from the widthwise size item of thepaper size item corresponding to the paper distinguishment number “0x01”(Step S103), compares the obtained page widthwise size information“595.44” with the read out paper widthwise size information “595”, andjudges they are coincident (Step S104).

Furthermore, the first obtaining section 27 refers to the paper listtable 26, and reads out paper lengthwise size information “842” fromlengthwise size item of paper size item corresponding to referencepointer (Step S105), compares the obtained page lengthwise sizeinformation “841.68” with the read out paper lengthwise size information“842”, and judges that they are coincident (Step S106).

Then, when it is judged that the page lengthwise size agrees with thepaper lengthwise size (Step S106), the first obtaining section 27 judgesthat the page size agrees with the paper size, obtains the paperdistinguishment number “0x01” on the basis of the reference pointer ofthe paper list table 26, and informs the comparing and judging section29 of it (Step S109). Thus, the page size obtaining process is completedin the controller unit 12.

As stated above, the page size information of image data is detectedthat is contained in the PDF file, and the corresponding paperdistinguishment number is obtained.

Moreover, in the Step S108, when it is judged that the paper sizeinformation corresponding to the updated reference pointer has been set,the first obtaining section 27 judges that the paper agreeing with thepage size of the PDF file has not been set in the paper list table 26,obtains the “corresponding number inexistence” as the paperdistinguishment number, and informs the comparing and judging section 29of it (Step S110).

Next, it is to perform an explanation about a flow of a fed-paper sizeobtaining process on which the second obtaining section 28 detectsfed-paper size corresponding to the paper feeding tray 14, and obtains acorresponding paper distinguishment number in the controller unit 12 ofthe printer 10 by using FIG. 6.

FIG. 6 is a flow chart for explaining a fed-paper size obtainingoperation of controller unit of the present invention.

In the controller unit 12, after the comparing and judging section 29sends the obtaining instruction to the second obtaining section 28 inorder to obtain size of paper, that is, fed-paper size informationrepresenting fed-paper size in the paper feeding tray 14 that has beeninstalled in the engine section 13, the second obtaining section 28sends a size detection instruction to the engine section 13 through theengine controlling section 25 (Step S201).

The engine section 13, after received the size detection instruction,detects fed-paper widthwise size information that represents widthwisesize of paper that has been accommodated in the paper feeding tray 14and fed-paper size information that is formed from fed-paper lengthwisesize information representing lengthwise size, and informs the enginecontrolling section 25 of the fed-paper size information (Step S202).Then, the engine controlling section 25 informs the second obtainingsection 28 of the informed of fed-paper size information (Step S202).

Next, the second obtaining section 28, firstly, initializes thereference pointer of the paper list table 26 (FIG. 4) in order to referto the paper list table 26 (Step S203).

Continuously, the second obtaining section 28 refers to the paper listtable 26, and reads out the paper widthwise size information fromwidthwise size item of paper size item corresponding to the referencepointer (Step S204).

Then, the second obtaining section 28 compares the obtained fed-paperwidthwise size information with the read out paper widthwise sizeinformation, and judges whether or not the widthwise size of paper inthe paper feeding tray 14 agrees with the widthwise size of paper thathas been set in the paper list table 26 (Step S205). In the presentembodiment, the second obtaining section 28, when difference between thefed-paper widthwise size information and the paper widthwise sizeinformation is within ±5 points, judges that the fed-paper widthwisesize agrees with the paper widthwise size.

When it is judged that they are coincident, the second obtaining section28, furthermore, refers to the paper list table 26, and reads out paperlengthwise size information from lengthwise size item of paper size itemcorresponding to the reference pointer (Step S206).

Then, the second obtaining section 28 compares the obtained fed-paperlengthwise size information with the read out paper lengthwise sizeinformation, and judges whether or not the fed-paper lengthwise sizeagrees with the paper lengthwise size (Step S207). In the presentembodiment, the second obtaining section 28, when the difference betweenthe fed-paper lengthwise size information and the paper lengthwise sizeinformation is within ±5 points, judges that the fed-paper lengthwisesize agrees with the paper lengthwise size.

When it is judged that they are coincident, the second obtaining section28 judges that the fed-paper size agrees with the paper size, obtainspaper distinguishment number on the basis of the reference pointer ofthe paper list table 26, and informs the comparing and judging section29 of it (Step S208). Thus, the fed-paper size obtaining process iscompleted in the controller unit 12.

As stated above, the fed-paper size of the paper feeding tray 14 isdetected, and the corresponding paper distinguishment number isobtained.

Moreover, in the Step S205, when it is judged that the fed-paperwidthwise size does not agree with the paper widthwise size, or, in theStep S207, when it is judged that the fed-paper lengthwise size does notagree with the paper lengthwise size, the second obtaining section 28updates reference pointer of the paper list table 26 (Step S209). Then,when it is judged that paper size information has been set thatcorresponds to the updated reference pointer (Step S210), the secondobtaining section 28 performs comparing and judging process between thepaper size information and the fed-paper size information has been set(Step S204˜Step S207).

When it is judged that the corresponding paper size information has notbeen set (Step S210), the second obtaining section 28 judges that thepaper size information agreeing with size of paper in the paper feedingtray 14 has not been set in the paper list table 26 (Step S211). At thistime, the second obtaining section 28 obtains a default number “0x01” aspaper distinguishment number (Step S211), and informs the comparing andjudging section 29 of the default number.

Next, it is to explain a flow of an analyzing and editing process ofreceiving data in the controller unit 12 of the printer 10 by using FIG.7.

FIG. 7 is a flow chart for explaining an analyzing and editing operationin embodiment 1 of controller unit of the present invention.

Before the analyzing and editing process is performed, the direct printinstruction and the PDF file are sent from the host computer 11 to theprinter 10, and are received by the receiving section 15. Here, firstly,it is to perform an explanation about a flow of process in the case thatpage size has not been set in the host computer 11, and an example inthe case that the page size of the PDF file (FIG. 2) agrees with thefed-paper size.

In the controller unit 12, after the editing section 17 received thedirect print instruction from the receiving section 15, the analyzingportion 18 performs an analysis of the PDF file (FIG. 2) (Step S301).The analyzing portion 18 reads out the PDF file from the receivingbuffer 16, searches the letter row “/CropBox”, and reads out settingregion information x3=0.0, y3=0.0, x4=595.44 and y4=841.68 from thenumerical value box continuing to the letter row (Step S301).

Further, the analyzing portion 18 searches the letter row “/MediaBox”,and reads out page information x1=0.0, y1=0.0, x2=595.44 and y2=841.68from the numerical value box continuing to the letter row (Step S301).

Then, the analyzing portion 18 compares the setting region informationwith the page information in order to judge existence/inexistence ofsetting of page size. The analyzing portion 18, when four equationsx1=x3, y1=y3, x2=x4 and y2=y4 are all met, judges that the page size hasnot been set (Step S302).

On the basis of this judgment, the analyzing portion 18 judges thatadjustment of image size is performed, and sends the size adjustmentinstruction to the adjusting portion 19 (Step S303).

The adjusting portion 19, after instructed the size adjustment, sendscomparison and judgment instruction to the comparing and judging section29 in order to compare page size of the PDF file that becomes the printobject with fed-paper size of the paper feeding tray 14 (Step S304).

The comparing and judging section 29, after received the comparison andjudgment instruction from the editing section 17, sends an obtaininginstruction to the first obtaining section 27 in order to obtain pagesize information of the PDF file and corresponding paper distinguishmentnumber. Then, the first obtaining section 27 performs the page sizeobtaining process (FIG. 5) (Step S305). The first obtaining section 27,after obtaining the page size information from the PDF file shown byFIG. 2, obtains paper distinguishment number “0x01” from the paper listtable 26, and informs the comparing and judging section 29 of the paperdistinguishment number (Step S305).

Next, the comparing and judging section 29 sends the obtaininginstruction to the second obtaining section 28 in order to obtainfed-paper size information corresponding to paper in the paper feedingtray 14 and corresponding paper distinguishment number. Then, the secondobtaining section 28 performs the fed-paper size obtaining process (FIG.6) (Step S306). The second obtaining section 28, after obtaining thefed-paper size information, obtains the paper distinguishment number“0x01” from the paper list table 26, and informs the comparing andjudging section 29 of the paper distinguishment number (Step S306).

Then, the comparing and judging section 29 compares the informed ofpaper distinguishment number from the first obtaining section 27 withthe informed of paper distinguishment number from the second obtainingsection 28, and judges whether or not they are coincident (Step S307).When it is judged that they are coincident (Step S307), the comparingand judging section 29 judges that the page size of image data that iscontained in the PDF file agrees with the size of paper in the paperfeeding tray 14, and informs the editing section 17 of the judgmentresult and the agreeing paper distinguishment number “0x01” (Step S308).

Continuously, the adjusting portion 19 and the making portion 21 of theediting section 17 performs extraction making process of the PDF file onthe basis of the informed of paper distinguishment number, generatesprint intermediate data, and stores the print intermediate data in theintermediate data buffer 22 (Step S309). Thus, the analyzing and editingprocess is completed in the controller unit 12. The detailed flow of theextraction making process in the Step S309 is stated later.

In the Step S307, when it is judged that the paper distinguishmentnumbers are not agree, the comparing and judging section 29 judges thatthe page size does not agree with the fed-paper size, and informs theediting section 17 of the page size information that was obtained by thefirst obtaining section 27 and the paper distinguishment number that wasobtained by the second obtaining section 28 (Step S310).

Continuously, the calculating portion 20 and the making portion 21 ofthe editing section 17 perform magnification/reduction making process,generates print intermediate data, and stores the print intermediatedata in the intermediate data buffer 22 (Step S311). Thus, the analyzingand editing process is completed in the controller unit 12. The detailedflow of the magnification/reduction making process in the Step S311 isstated later.

As stated above, in the controller unit 12, on the basis of comparisonand judgment result between the page size of the PDF file and fed-papersize, the editing process of the PDF file is performed, and the printintermediate data is generated.

Moreover, in the Step S302, when the page information does not agreewith the setting region information, the analyzing portion 18 judgesthat the page size has been set. On the basis of the judgment, theanalyzing portion 18 judges that the adjustment of the image size isunnecessary (Step S312); on the basis of the page information andsetting region information that were read out, the making portion 21performs setting making process, generates print intermediate data, andstores the print intermediate data in the intermediate data buffer 22(Step S313). The flow of the setting making process is stated later.

Next, it is to perform an explanation about the extraction makingprocess from the image data to the print intermediate data that isperformed in the editing section 17 of the controller unit 12 by usingFIG. 8 and FIG. 9.

FIG. 8 is a flow chart for explaining an extraction making operation inembodiment 1 of controller unit of the present invention; and FIG. 9 isa diagram for explaining an extraction making process of image data inembodiment 1.

Moreover, the extraction making process corresponds to operation of theStep S309 in the FIG. 7.

In the comparing and judging section 29 of the controller unit 12, whenit is judged that the page size of the PDF file agrees with thefed-paper size of the paper feeding tray 14, and the editing section 17is informed of the paper distinguishment number “0x01” of papercorresponding to the size, the adjusting portion 19 informs the secondobtaining section 28 of the paper distinguishment number, and instructsto obtain the print region size information (Step S401).

The second obtaining section 28 refers to the paper list table 26 (FIG.4), and reads out print region widthwise size information “575” fromwidthwise size item of print region size item corresponding to theinformed of paper distinguishment number “0x01” (Step S402). Further,the second obtaining section 28 reads out print region lengthwise sizeinformation “822” from corresponding lengthwise size item (Step S402).Then, the second obtaining section 28 informs the adjusting portion 19of the print region widthwise size information “575” and the printregion lengthwise size information “822”.

The adjusting portion 19 performs a setting of print region on the basisof the print region widthwise size information “575” and the printregion lengthwise size information “822” that were informed (Step S403).Next, it is to perform an explanation about setting of print region byusing FIG. 9A.

FIG. 9A is a diagram showing a page image based on image data that iscontained in the PDF file.

A page image 32 is formed from a rectangular region having four toppoints “32A”, “32B”, “32C” and “32D”; and the region size of therectangular region corresponds to the page size that was obtainedthrough the first obtaining section 27. That is, the page widthwise sizeinformation represents the length between the top point “32A” and thetop point “32B”; and the page lengthwise size information represents thelength between the top point “32A” and the top point “32C”.

The adjusting portion 19 sets a print region 33 with respect to the pageimage 32. Here, the print region 33 is formed from a rectangular regionhaving top points “33 a”, “33 b”, “33 c” and “33 d”; and the region sizeof the rectangular region is set on the basis of the print region sizeinformation that was obtained through the second obtaining section 28.That is, the adjusting portion 19 sets the length between the top point“33 a” and the top point “33 b” on the basis of the print regionwidthwise size information, and sets the length between the top point“33 a” and the top point “33 c” on the basis of the print regionlengthwise size information. In the present embodiment, the adjustingportion 19 performs the setting on which print region is arranged on thecenter part in the page image 30.

Then, the making portion 21 extracts image data in print regioncorresponding to the set print region, generates print intermediatedata, and stores it in the intermediate data buffer 22 (Step S404).Thus, the extraction making process is completed in the controller unit12.

As stated above, the image data is extracted that corresponds to theprint region from the image data of the PDF file, and the printintermediate data is generated.

FIG. 9B is a diagram showing a page image based on print intermediatedata after the extraction making process.

In the FIG. 9B, a rectangular region 34 has a region size correspondingto the fed-paper size; and a rectangular region 35 has a region sizecorresponding to the print region 33.

The image data in the region that was extracted from the print region 33of the page image 32 that is shown by FIG. 9A, as shown by FIG. 9B, ismade by the same size, and generates print intermediate data.

Next, it is to perform an explanation about magnification/reductionmaking process from image data to print intermediate data that isperformed in the editing section 17 of the controller unit 12 by usingFIG. 10 and FIG. 11.

FIG. 10 is a flow chart for explaining a magnification/reduction makingoperation in embodiment 1 of controller unit of the present invention;and FIG. 11 is a diagram for explaining a magnification/reduction makingprocess of image data in embodiment 1.

Moreover, the magnification/reduction making process corresponds tooperation of Step S311 in the FIG. 7.

Before the magnification/reduction making process is performed, when itis judged that the page size of the PDF file does not agree with thefed-paper size of the paper feeding tray 14, the editing section 17 isinformed of the page size information that was obtained by the firstobtaining section 27 and the paper distinguishment number correspondingto the fed-paper size that was obtained by the second obtaining section28. The page size information that is informed by the second obtainingsection 28 is regarded as page widthwise size information “x1” and pagelengthwise size information “y1”.

FIG. 11A is a diagram showing a page image based on image data that iscontained in the PDF file.

A page image 36 is formed from a rectangular region having top points“36A”, “36B”, “36C” and “36D”; and the region size of the rectangularregion corresponds to the page size that was obtained through the firstobtaining section 27. That is, the page widthwise size information “x1”represents the length between the top point “36A” and the top point“36B”; and the page lengthwise size information “y1” represents thelength between the top point “36A” and the top point “36C”.

After the editing section 17 is informed of the page size informationand the paper distinguishment number, the calculating portion 20 informsthe second obtaining section 28 of the informed of paper distinguishmentnumber, and instructs to obtain the print region size information (StepS501).

The second obtaining section 28 refers to the paper list table 26 (FIG.4), reads out print region widthwise size information “x2” fromwidthwise size item of print region size item corresponding to theinformed of paper distinguishment number, and reads out print regionlengthwise size information “y2” from corresponding lengthwise size item(Step S502). Then, the second obtaining section 28 informs thecalculating portion 20 of the print region widthwise size information“x2” and the print region lengthwise size information “y2”.

FIG. 11B is a diagram showing a page image based on print intermediatedata after the extraction making process.

In the FIG. 11B, a rectangular region 38 having top points “38A”, “38B”,“38C” and “38D” corresponds to the fed-paper size. Then, a rectangularregion 38 having top points “39 a”, “39 b”, “39 c” and “39 d” shows aprint region 39 that has print region size. That is, the print regionwidthwise size information “x2” that was obtained by the secondobtaining section 28 becomes the length between the top point “39 a” andthe top point “39 b”; and the print region lengthwise size information“y2” becomes the length between the top point “39 a” and the top point“39 c”.

The editing section 17 performs magnification/reduction of image size sothat the page image 36 shown by FIG. 11A is accommodated in the printregion 39 shown by FIG. 11B.

The calculating portion 20 calculates Rx=x2/x1 as widthwise rateinformation “Rx” on the basis of the informed of page widthwise sizeinformation “x1” from the first obtaining section 27 and the informed ofprint region widthwise size information “x2” from the second obtainingsection 28 (Step S503).

Further, the calculating portion 20 calculates Ry=y2/y1 as lengthwiserate information “Ry” on the basis of the informed of page lengthwisesize information “y1” from the first obtaining section 27 and theinformed of print region lengthwise size information “y2” from thesecond obtaining section 28 (Step S503).

Then, the calculating portion 20 compares the widthwise rate information“Rx” with the lengthwise rate information “Ry”, and judges whether ornot the widthwise rate information “Rx” is or under the lengthwise rateinformation “Ry” (Step S505).

When Rx≦Ry (Step S505), the calculating portion 20 sets the widthwiserate information “Rx” as magnification/reduction rate information “R”(Step S506). Further, When Rx>Ry (Step S505), the calculating portion 20sets the lengthwise rate information “Ry” as magnification/reductionrate information “R” (Step S507). The making portion 21 is informed ofthe magnification/reduction rate information “R” that was set.

The making portion 21, after informed of the magnification/reductionrate information “R” from the calculating portion 20, performsmagnification/reduction process of image data that is contained in thePDF file, and generates print intermediate data (Step S508). The makingportion 21 magnifies/reduces the page image 36 (FIG. 11A) “R” times,generates print intermediate data of size that is accommodated in theprint region 39 (FIG. 11B), and stores it in the intermediate databuffer 22 (Step S508). Thus, the magnification/reduction making processis completed in the controller unit 12.

As stated above, the image data of the PDF file is magnified/reducedthat corresponds to the print region; and the print intermediate data isgenerated.

Next, it is to perform an explanation about setting making process thatis performed in the editing section 17 of the controller unit 12 byusing FIG. 12.

FIG. 12 is a flow chart for explaining a setting making operation ofcontroller unit of the present invention.

Moreover, the setting making process corresponds to operation of theStep S313 in the FIG. 7, and is process on which the page size makes theimage data of setting end into the print intermediate data in the hostcomputer 11.

In the editing section 17 of the controller unit 12, when it is judgedthat the adjustment of the image size is unnecessary, the analyzingportion 18 sets the print region on the basis of the setting regioninformation “x3”, “y3”, “x4” and “y4” that was read out from the PDFfile (Step S601).

Then, the making portion 21 extracts the image data in the print regionfrom the image data of the PDF file, and generates print intermediatedata (Step S602).

As stated above, on the basis of the print region that was set in thehost computer 11, the PDF file is made; and the print intermediate datais generated.

Finally, it is to explain a flow of a direct print process in theprinter 10 of the present embodiment.

FIG. 13 is a flow chart for explaining a direct print operation inembodiment 1 of printer comprising a controller unit of the presentinvention.

In the printer 10, after the receiving section 15 of the controller unit12 receives the direct print instruction and the PDF file from the hostcomputer 11 (Step S701), the receiving section 15 stores the PDF file inthe receiving buffer 16, and sends the direct print instruction to theediting section 17.

Then, in the controller unit 12, the analyzing and editing process (FIG.7) of the PDF file is performed (Step S702). After the editing section17 analyzes the PDF file, sets the print region, and generates the printintermediate data, it stores the print intermediate data in theintermediate data buffer 22; and sends the expansion instruction of theprint intermediate data to the expanding section 23 (Step S702).

The expanding section 23 reads out and expands the print intermediatedata from the intermediate data buffer 22 on the basis of the expansioninstruction from the editing section 17, and generates print image data(Step S703). Then, the expanding section 23 stores the print image datain the image data buffer 24; and instructs the engine controllingsection 25 to start the print.

The engine controlling section 25, after received the print startinstruction, reads out the print image data from the image data buffer24, and sends the print instruction and the print image data to theengine section 13. Then, the engine section 13 forms image in the printregion of paper that was paper fed from the paper feeding tray 14 on thebasis of the print image data, and performs the print (Step S704). Thus,the print process is completed in the printer 10.

As stated above, the direct print process based on the PDF file isperformed in the printer 10.

As stated above, according to the printer 10 on which the controllerunit 12 of the present embodiment is installed, when the page size ofthe PDF file agrees with size of paper in the paper feeding tray 14, thedata corresponding to the print region of the paper extracts from thePDF file, and the print image data of the print region size is made.Therefore, because unnecessary image reduction is prevented, and it ispossible to print the PDF file in a desirable size, so the convenienceis improved.

<Embodiment 2>

FIG. 14 is block diagram showing a structure of a printer comprising acontroller unit of embodiment 2 of the present invention.

In the printer 40 of the present embodiment, a first image data buffer42 and a second image data buffer 43 in a controller unit 41 are set up;and a structure on which an adjusting section 44 is added for performinga size adjustment of print image data is different from the structure ofthe embodiment 1.

Moreover, in the present embodiment, the same structure as theembodiment 1 is shown by the same mark, and the detailed explanationsabout these are omitted.

The printer 40, as a print apparatus on which a direct print function isinstalled, as shown by FIG. 14, is connected to the host computer 11 asan upper apparatus, and comprises a controller unit 41, an enginesection 13 and a paper feeding tray 14.

The controller unit 41, as a print controlling apparatus of the presentembodiment$ as shown by FIG. 14, comprises a receiving section 15, areceiving buffer 16, an editing section 45, an intermediate data buffer22, a expanding section 49, a first image data buffer 42, a second imagedata buffer 43, an adjusting section 44, an engine controlling section25, a paper list table 26, a first obtaining section 27, a secondobtaining section 53 and a comparing and judging section 29.

The editing section 45, as shown by FIG. 14, has an analyzing portion46, a calculating portion 47 and a making portion 48, and is aprocessing section that performs the analyzing and editing process ofthe PDF file.

The analyzing portion 46, after received the direct print instructionfrom the receiving section 15, reads out the PDF file from the receivingbuffer 16, analyzes the PDF file, and judges existence/inexistence ofpage setting.

When it is judged that the page setting has not been performed, theanalyzing portion 46 judges that the adjustment of the image size isnecessary, and performs a comparison and judgment instruction to thecomparing and judging section 29. Then, the instruction to thecalculating portion 47 and the making portion 48 is performed on thebasis of the judgment result from the comparing and judging section 29.

When it is judged that the page setting has been performed, theanalyzing portion 46 judges that the adjustment of the image size isunnecessary, performs size setting of print region, and then instructsthe making portion 48 to make the PDF file.

The calculating portion 47 calculates magnification/reduction rateinformation for the magnifying/reducing process of the image data thatis contained in the PDF file. In the present embodiment, the calculatingportion 47 performs the calculation of magnification/reduction rateinformation on the basis of the page size information that was obtainedby the first obtaining section 27 and the fed-paper size informationthat was obtained by the second obtaining section 28.

The making portion 48 makes the image data that is contained in the PDFfile; generates print intermediate data; stores the print intermediatedata in the intermediate data buffer 22; and instructs the expandingsection 49 to expand the print intermediate data.

In the present embodiment, the making portion 48 makes the image data tothe print intermediate data on the basis of the paper size that was set.Further, after the magnification/reduction rate information was informedfrom the calculating portion 47, the making portion 48, as amagnification/reduction generating section, magnifies/reduces the imagedata on the basis of the magnification/reduction rate information, andgenerates the print intermediate data that corresponds to the papersize.

The expanding section 49, after obtained the expansion instruction fromthe editing section 45, reads out the print intermediate data from theintermediate data buffer 22, and performs the expanding process to theprint image data of the print intermediate data. Then, the expandingsection 49 stores the print image data in the first image data buffer42; and instructs the adjusting section 44 to adjust the size of theprint image data.

The first image data buffer 42 is a temporarily storing section in whichthe print image data is temporarily stored that was expanded andgenerated by the expanding section 49.

The second image data buffer 43 is a temporarily storing section inwhich the print image data inside of region is temporarily stored thatwas adjusted and generated by the adjusting section 44 stated later.

The adjusting section 44, as shown by FIG. 14, has anexistence/inexistence judging portion 50, an extracting portion 51 and areducing portion 52, adjusts size of print image data on the basis ofthe size adjustment instruction from the expanding section 49, and is aprocessing section that generates print image data inside of region.

The existence/inexistence judging portion 50 reads out the print imagedata from the first image data buffer 42, and judgesexistence/inexistence of drawing image in the outside of the printregion of the print image data. The existence/inexistence judgingportion 50 judges existence/inexistence of drawing image in the outsideof the print region on the basis of the informed of print region sizeinformation from the second obtaining section 28. Theexistence/inexistence judging portion 50, when it is judged that thereis drawing data, performs a reduction instruction in the reducingportion 52; and when it is judged that there is no drawing data,performs an extraction instruction in the extracting portion 51.

The extracting portion 51 extracts the print data inside of region thatcorresponds to the print region from the print image data. Theextracting portion 51 stores the print data inside of region in thesecond image data buffer 43; and instructs the engine controllingsection 25 to start the print.

The reducing portion 52, as a magnification/reduction generatingsection, reduces the print image data on the basis of the reductioninstruction from the existence/inexistence judging portion 50, andgenerates the print data inside of region corresponding to the printregion. The reducing portion 52 calculates reduction rate information onthe basis of the paper size information and the print region sizeinformation that were informed from the second obtaining section 28, andperforms the reduction to the print data inside of region of the printimage data on the basis of the reduction rate information. Then, thereducing portion 52 stores the print data inside of region in the secondimage data buffer 43; and instructs the engine controlling section 25 tostart the print.

The second obtaining section 53 instructs the engine controlling section25 to perform a size detection, and obtains the fed-paper sizeinformation. Then, the second obtaining section 53 obtains paperdistinguishment number corresponding to the fed-paper size informationfrom the paper list table 26 (FIG. 4), and informs the comparing andjudging section 29 of it.

Further, the second obtaining section 53, as a third obtaining section,obtains the fed-paper size information and the corresponding printregion size information, and informs the adjusting section 44 of it.

Next, it is to explain operation of the printer 40 of the presentembodiment.

Here, firstly, it is to perform an explanation about a flow of ananalyzing and editing process of receiving data in the controller unit41.

FIG. 15 is a flow chart for explaining an analyzing and editingoperation in embodiment 2 of controller unit of the present invention.

Firstly, it is to perform an explanation about a flow of an analyzingand editing process in the case that page size has not been set in thehost computer 11, and an example in the case that the page size of thePDF file agrees with the fed-paper size of the paper feeding tray 14.

Moreover, because the flows of the page size obtaining process throughthe first obtaining section 27 and the fed-paper size obtaining processthrough the second obtaining section 28 are respectively the same as theflows in the embodiment 1 in the controller unit 41 of the printer 40 ofthe present embodiment, so the explanations are omitted.

In the controller unit 41, after the editing section 45 receives thedirect print instruction from the receiving section 15, the analyzingportion 46 performs the analysis of the PDF file (FIG. 2) (Step S301).The analyzing portion 46 reads out the setting region information andthe page information from the PDF file (Step S301), and judges anexistence/inexistence of setting of page size (Step S302).

When it is judged that the page size has not been set (Step S302), theanalyzing portion 46 judges that the adjustment of the image size isnecessary (Step S303), and sends the comparison and judgment instructionto the comparing and judging section 29 in order to compare the pagesize of the PDF file that becomes the print object with the fed-papersize of the paper feeding tray 14 (Step S304).

The comparing and judging section 29 sends a receiving instruction tothe first obtaining section 27 on the basis of the comparison andjudgment instruction from the editing section 45. Then, the firstobtaining section 27 performs the page size obtaining process (FIG. 4),obtains paper distinguishment number corresponding to the page sizeinformation, and informs the comparing and judging section 29 of thepaper distinguishment number (Step S305).

Further, the comparing and judging section 29 sends the obtaininginstruction to the second obtaining section 53. Then, the secondobtaining section 53 performs the fed-paper size obtaining process (FIG.5), obtains paper distinguishment number corresponding to the fed-papersize information, and informs the comparing and judging section 29 ofthe paper distinguishment number (Step S306).

Then, the comparing and judging section 29 performs the comparing andjudging process of the informed of paper distinguishment number from thefirst obtaining section 27 and the informed of paper distinguishmentnumber from the second obtaining section 53 (Step S307). The comparingand judging section 29, when it is judged that the paper distinguishmentnumbers are coincident (Step S307), judges that the page size agreeswith the fed-paper size, and informs the editing section 45 of thejudgment result and the agreeing paper distinguishment number (StepS308).

Then, the making portion 48 of the editing section 45 makes the imagedata of the PDF file, generates print intermediate data, and stores theprint intermediate data in the intermediate data buffer 22 (Step S801).Thus, the analyzing and editing process is completed in the controllerunit 41.

FIG. 16 is a diagram for explaining a making process to make data fromimage data to print intermediate data in embodiment 2.

FIG. 16A is a diagram showing a page image based on image data that iscontained in the PDF file. FIG. 16B is a diagram showing a page imagebased on print intermediate data after the analyzing and editingprocess. In the FIG. 16B, a rectangular region 55 has region size thatagrees with the fed-paper size.

As stated above, when the page size agrees with the fed-paper size, thatis, when the size of the page image 54 that is shown by FIG. 16A agreeswith the size of paper in the paper feeding tray 14, the image data thatis contained in the PDF file is made in the same rate, as shown by FIG.16B, the print intermediate data corresponding to the fed-paper size isgenerated.

When the page size does not agree with the fed-paper size, in Step S307,the comparing and judging section 29 judges that the paperdistinguishment numbers are not agree.

On the basis of this judgment result, the comparing and judging section29 judges that the page size does not agree with the fed-paper size, andinforms the editing section 45 of the page size information that wasobtained by the first obtaining section 27 and the fed-paper sizeinformation that was obtained by the second obtaining section 53 (StepS802).

Then, the calculating portion 47 and the making portion 48 of theediting section 45 magnification/reduction makes the image data on thebasis of the page size information and the fed-paper size informationthat were informed, and generates print intermediate data (Step S803).Thus, the analyzing and editing process is completed in the controllerunit 41. The flow of the magnification/reduction making process isstated later.

Moreover, in the Step S302, when it is judged that the page size hasbeen set, the analyzing portion 46 judges that the adjustment of theimage size is unnecessary (Step S312). Then, the making portion 48performs the setting making process (FIG. 12) of the PDF file that isthe same as the embodiment 1 on the basis of the page information andthe setting region information, generates print intermediate data, andstores the print intermediate data in the intermediate data buffer 22(Step S313).

Next, it is to explain a magnification/reduction making process fromimage data to print intermediate data that is performed in the editingsection 45 of the controller unit 41 by using FIG. 16 and FIG. 17.

FIG. 17 is a flow chart for explaining a magnification/reduction makingoperation in embodiment 2 of controller unit of the present invention.

Moreover, the magnification/reduction making process corresponds tooperation of the Step S803 in the FIG. 15.

Before the magnification/reduction making process is performed, thecomparing and judging section 29 of the controller unit 41 informs theediting section 45 of the page widthwise size information “x1” and thepage lengthwise size information “y1” that were obtained by the firstobtaining section 27 and the fed-paper widthwise size information “x3”and the fed-paper lengthwise size information “y3” that were obtained bythe second obtaining section 53.

In the FIG. 16A, the page widthwise size information “x1” represents thelength between the top point “54A” and the top point “54B” of the pageimage 54; and the page lengthwise size information “y1” represents thelength between the top point “54A” and the top point “54C”. Further, inthe FIG. 16B, the fed-paper widthwise size information “x3” correspondsto the length between the top point “55A” and the top point “55B” of therectangular region 55; and the fed-paper lengthwise size information“y3” corresponds to the length between the top point “55A” and the toppoint “55C”.

Because the region size, i.e. the page size of the image data of thepage image 54 does not agree with the region size, i.e. the fed-papersize of the rectangular region 55, the editing section 45 performs themagnification/reduction of the image size so that the page image 54 isaccommodated in the rectangular region 55.

In the editing section 45, the calculating portion 47, firstly,calculates R′x=x3/x1 as widthwise rate information “R′x” on the basis ofthe page widthwise size information “x1” and the fed-paper widthwisesize information “x3” (Step S901).

Further, the calculating portion 47 calculates R′y=y3/y1 as lengthwiserate information “R′y” on the basis of the page lengthwise sizeinformation “y1” and the fed-paper lengthwise size information “y3”(Step S902).

Then, the calculating portion 47 compares the widthwise rate information“R′x” with the lengthwise rate information “R′y” that were calculated,and judges whether or not the widthwise rate information “R′x” is orunder the lengthwise rate information “R′y” (Step S903).

When it is R′x≦R′y (Step S903), the calculating portion 47 sets thewidthwise rate information “Rx” as magnification/reduction rateinformation “R′” (Step S904). Further, when it is R′x>R′y (Step S903),the calculating portion 47 sets the lengthwise rate information “R′y” asmagnification/reduction rate information “R′” (Step S905). The makingportion 48 is informed of the magnification/reduction rate information“R′” that was set.

Then, the making portion 48 performs the magnifying/reducing process ofthe image data that is contained in the PDF file on the basis of theinformed of magnification/reduction rate information “R′”, and generatesprint intermediate data (Step S906). The making portion 48magnifies/reduces the page image 54 (FIG. 16A) “R′” times, generatesprint intermediate data of size that is accommodated in the rectangularregion 55 (FIG. 16B) of the fed-paper size, and stores the printintermediate data in the intermediate data buffer 22 (Step S906). Thus,the magnification/reduction making process is completed in thecontroller unit 41.

As stated above, the image data of the PDF file is magnified/reduced tocorrespond to the fed-paper size, and the print intermediate data isgenerated.

It is to explain a flow of a confirming process that is performed beforethe size adjustment of the print image data by using FIG. 18 in theadjusting section 44 of the controller unit 41.

FIG. 18 is a flow chart for explaining a confirming operation inembodiment 2 of controller unit of the present invention.

In the controller unit 41, after the adjusting section 44 receives anadjustment instruction from the expanding section 23, theexistence/inexistence judging portion 50 performs a confirming processthat is shown below in order to judge existence/inexistence of drawingdata in the outside of the print region in the print image data.

The existence/inexistence judging portion 50, firstly, instructs thesecond obtaining section 53 to obtain the fed-paper size information andthe print region size information. The second obtaining section 53obtains the fed-paper size information through the engine controllingsection 25 on the basis of the obtaining instruction (Step S1001).Further, the second obtaining section 53 refers to the paper list table26, and reads out and obtains the print region size informationcorresponding to the fed-paper size information (Step S1001). Then, thesecond obtaining section 53 informs the adjusting section 44 of thefed-paper size information and the print region size information thatwere obtained (Step S1001). The explanation about the detailed obtainingprocess of the print region size information in the second obtainingsection 53 is omitted.

After the fed-paper size information and the print region sizeinformation are informed, the existence/inexistence judging portion 50performs a setting of the confirming process on the basis of thefed-paper size information and the print region size information (StepS1002).

FIG. 19 is a diagram showing a setting example of confirmation region.

In the FIG. 19, a rectangular region 64 is a region that has page sizeof print image data. The page size agrees with the fed-paper size.

A part region 64-5 that has been arranged at the center of therectangular region 64 is a region of rectangular shape that has printregion size. The rectangular region 64, furthermore, surrounds the partregion 64-5, and has been divided by a part region 64-1 that is a regionof rectangular shape that is arranged at the upper part, a part region64-1 that is a rectangular region that is arranged at the under part, apart region 64-3 and 64-4 that are rectangular regions that arerespectively arranged at the both sides.

The existence/inexistence judging portion 50 sets respective partregions 64-1˜4 expect the part region 64-5 corresponding to the printregion as a first confirmation region, a second confirmation region, athird confirmation region and a fourth confirmation region (Step S1002).That is, the existence/inexistence judging portion 50 divides the printimage data into four confirmation regions and one print region.

Then, the existence/inexistence judging portion 50, firstly, extractspart image data corresponding to the first confirmation region from theprint image data (Step S1003), and judges existence/inexistence ofdrawing image in the part image data (Step S1004).

When it is judged that there is no drawing image in the firstconfirmation region (Step S1004), the existence/inexistence judgingportion 50, continuously, extracts part image data corresponding to thesecond confirmation region from the print image data (Step S1005), andjudges an existence/inexistence of drawing image in the part image data(Step S1006).

When it is judged that there is no drawing image in the secondconfirmation region (Step S1006), the existence/inexistence judgingportion 50, furthermore, extracts part image data corresponding to thethird confirmation region from the print image data (Step S1007), andjudges an existence/inexistence of drawing image in the part image data(Step S1008).

Then, when it is judged that there is no drawing image in the thirdconfirmation region (Step S1008), the existence/inexistence judgingportion 50, furthermore, extracts part image data corresponding to thefourth confirmation region from the print image data (Step S1009), andjudges existence/inexistence of drawing image in the part image data(Step S1010).

When it is judged that there is also no drawing image in the fourthconfirmation region (Step S1010), the existence/inexistence judgingportion 50 judges that there are no drawing image in respectiveconfirmation regions. Then, the existence/inexistence judging portion 50judges that there is no drawing image, i.e. image outside of region inthe outside range of the print region, and informs the extractingportion 51 of the judgment result (Step S1011). Thus, the confirmingprocess is completed in the existence/inexistence judging portion 50.

Moreover, when it is judged that there is drawing image in any ofrespective confirmation regions (Step S1004, S1006, S1008, S1010), theexistence/inexistence judging portion 50 judges that there is drawingimage, i.e. image outside of region in the outside range of the printregion, and informs the reducing portion 52 of the judgment result (StepS1012). Thus, the confirming process is completed in theexistence/inexistence judging portion 50.

As stated above, the existence/inexistence of data outside of region inthe print image data is judged.

Next, it is to explain a flow of a direct print process in the printer40 of the present embodiment.

FIG. 20 is a flow chart for explaining direct print operation inembodiment 2 of printer comprising controller unit of the presentinvention.

In the printer 40, the receiving section 15 of the controller unit 41,after received the direct print instruction and the PDF file from thehost computer 11 (Step S701), the receiving section 15 stores the PDFfile in the receiving buffer 16, and sends the direct print instructionto the editing section 45.

Then, in the controller unit 41, the analyzing and editing process (FIG.15) of the PDF file is performed (Step S1101). The editing section 45,after it analyzes and edits the PDF file, and generates printintermediate data, stores the print intermediate data in theintermediate data buffer 22; and sends the expansion instruction of theprint intermediate data to the expanding section 23 (Step S1101).

The expanding section 23 reads out and expands the print intermediatedata from the intermediate data buffer 22 on the basis of the expansioninstruction, and generates print image data (Step S1102). Then, theexpanding section 23 stores the print image data in the first image databuffer 42; and instructs the adjusting section 44 to adjust the printimage data (Step S1102).

After the adjusting section 44 receives the adjustment instruction, theexistence/inexistence judging portion 50 performs the confirming process(FIG. 18) in order to judge the existence/inexistence of drawing data inthe outside range of the print region in the print image data (StepS1103). The existence/inexistence judging portion 50 divides the printimage data into five part image data, and performs the confirmingprocess.

Then, the existence/inexistence judging portion 50 judges whether or notthere is drawing data, i.e. image data outside of region in the outsiderange of the print region (Step S1104).

When it is judged that there is no image data outside of region (StepS1104), the existence/inexistence judging portion 50 informs theextracting portion 51 of the print region size information, andinstructs to extract the image data inside of region (Step S1105).

The extracting portion 51 reads out the print image data from the firstimage data buffer 42 on the basis of the extraction instruction. Then,the extracting portion 51 extracts the image data in the print region asthe image data inside of region from the print image data of thefed-paper size on the basis of the informed of print region sizeinformation (Step S1106).

FIG. 21 is a diagram for explaining an extracting process of print imagedata in embodiment 2.

FIG. 21A is a diagram showing a page image based on the print imagedata.

The page size of a page image 56 is adjustment end by the editingsection 45 in order to agree with the fed-paper size.

The extracting portion 51 extracts the image data in the print region 57as the image data inside of region from the print image datacorresponding to the page image 56 (Step S1106). The extracting portion51 stores the extracted image data inside of region in the second imagedata buffer 43; and instructs the engine controlling section 25 to startthe print (Step S1106).

The engine controlling section 25, after received the print startinstruction, reads out image data inside of region from the second imagedata buffer 43, and sends the image data inside of region and the printinstruction to the engine section 13. Then, the engine section 13 formsimage in the print region of paper that was paper fed from the paperfeeding tray 14, and performs the print (Step S1107). Thus, the directprint process is completed in the printer 40.

FIG. 21B is a diagram showing a page image based on the image datainside of region after the extracting process.

In a print region 59 of a paper 58 that was paper fed from the paperfeeding tray 14, an image based on the image data inside of region thatwas extracted from the print image data is formed in the same timeswithout being magnified/reduced.

Moreover, in the Step S1104, when it is judged that there is print dataoutside of region, the existence/inexistence judging portion 50 informsthe reducing portion 52 of the fed-paper size information and the printregion size information, and instructs to reduce the print image data(Step S1108).

The reducing portion 52 performs a reducing process of the print imagedata on the basis of a reduction instruction, and generates image datainside of region (Step S1109).

Here, it is to explain a flow of a reducing process in the Step S1109 byusing FIG. 22 and FIG. 23.

FIG. 22 is a flow chart for explaining a reducing operation ofcontroller unit of the present invention; and FIG. 23 is a diagram forexplaining a reducing process of print image data in embodiment 2.

In the adjusting section 44 of the controller unit 41, the reducingportion 52, after informed of the fed-paper size information that iscomposed of the fed-paper widthwise size information “x3” and thefed-paper lengthwise size information “y3”, and the print region sizeinformation that is composed of the print region widthwise sizeinformation “x2” and the print region lengthwise size information “y2”from the existence/inexistence judging portion 50, performs themagnification/reduction of the print image data.

FIG. 23A is a diagram showing a page image based on the print imagedata; and FIG. 23B is a diagram showing a page image based on the imagedata inside of region.

In the FIG. 23A, a page image 60 is formed from a rectangular region ofthe fed-paper size; and a rectangular region 61 has print regioncorresponding to the fed-paper size. Here, the print image datacorresponding to the page image 60 also has drawing data, i.e. dataoutside of region at the outside of the rectangular region 61.Therefore, after the printing process is performed on the basis of theprint image data, there is a problem that drawing based on the dataoutside of region is not executed.

Therefore, the reducing portion 52 reduces the print image data so thatthe page image 60 is accommodated in a print region 63 of a paper 62that is shown by FIG. 23B.

Firstly, the reducing portion 52 calculates rx=x2/x3 as widthwise rateinformation “rx” on the basis of the fed-paper widthwise sizeinformation “x3” and the print region widthwise size information “x2”(Step S1201).

Further, the reducing portion 52 calculates ry=y2/y3 as lengthwise rateinformation “ry” on the basis of the fed-paper lengthwise sizeinformation “y3” and the print region lengthwise size information “y2”(Step S1202).

Then, the reducing portion 52 compares the widthwise rate information“rx” with the lengthwise rate information “ry”, and judges whether ornot the widthwise rate information “rx” is or under the lengthwise rateinformation “ry” (Step S1203).

When it is rx≦ry (Step S1203), the reducing portion 52 sets thewidthwise rate information “rx” as reduction rate information “r” (StepS1204). Further, when it is rx>ry (Step S1203), the reducing portion 52sets the lengthwise rate information “ry” as reduction rate information“r” (Step S1205).

Continuously, the reducing portion 52 reduces the print image data onthe basis of the set reduction rate information “r”, and generates theimage data inside of region corresponding to the print region (StepS1206). The reducing portion 52 reduces the page image 60 (FIG. 23A) “r”times, generates data inside of region of the size that is accommodatedin the print region 63 (FIG. 23B), and stores it in the second imagedata buffer 43 (Step S1206). Thus, the reducing process is completed inthe controller unit 41.

As stated above, the print image data is reduced to correspond to theprint region, and the image data inside of region is generated.

Returning to the FIG. 20, the reducing portion 52, after storing theimage data inside of region in the second image data buffer 43 (StepS1109), instructs the engine controlling section 25 to start the print.

Then, the engine controlling section 25 reads out image data inside ofregion from the second image data buffer 43, and sends the image datainside of region and the print instruction to the engine section 13.Continuously, the engine section 13 forms an image in the print regionof paper that was paper fed from the paper feeding tray 14 on the basisof the image data inside of region that was received, and performs theprint (Step S1107). Thus, the direct print process is completed in theprinter 40.

As stated above, in the printer 40, the direct print process based onthe PDF file is executed.

As stated above, according to the printer 40 on which the controllerunit 41 of the present embodiment is installed, in the case to adjustimage size, because it is considered whether or not drawing data, i.e.data outside of region at the outside of the print region is existent,so unnecessary image reduction is prevented; and the loss of dataoutside of region is really prevented.

The Utilization Possibility on Industry:

In respective embodiments stated above, the present invention is appliedto the controller section of the print apparatus that executes thedirect print on the basis of the electronic document that was sent fromthe upper apparatus. However, the present invention is not limited inthe case. For example, it can also be applied to MFP that performs theprint on the basis of the image data that was read in the scanner.

The present invention is not limited to the foregoing embodiments butmany modifications and variations are possible within the spirit andscope of the appended claims of the invention.

1. A print controlling apparatus which includes an inputting section forinputting image data of electronic document and an expanding section forexpanding the inputted image data into print data, and is used forprinting the electronic document onto record medium, comprising: a firstobtaining section that obtains page size information representing pagesize of the electronic document; a second obtaining section that obtainsmedium size information representing medium size of the record medium; acomparing and judging section that compares the page size informationwith the medium size information that were obtained, and judges whetheror not the page size information agrees with the medium sizeinformation; and an extracting section that, when the page sizeinformation is judged to agree with the medium size information,extracts image data inside of region corresponding to print region ofthe record medium from the image data, wherein the expanding sectionexpands the extracted image data inside of region, and generates printdata inside of region corresponding to the print region.
 2. The printcontrolling apparatus according to claim 1, further comprising: aprinting section that prints in the print region and executes a print onthe basis of the generated print data inside of region.
 3. The printcontrolling apparatus according to claim 1, wherein the inputtingsection includes a reading and obtaining section that reads manuscriptimage of the electronic document and obtains the image data.
 4. Theprint controlling apparatus according to claim 1, wherein the inputtingsection includes a receiving section that receives the image data fromupper apparatus.
 5. The print controlling apparatus according to claim1, wherein the comparing and judging section judges that the page sizeinformation agrees with the medium size information, when a sizedifference between the page size information and the medium sizeinformation becomes or under a threshold value.
 6. The print controllingapparatus according to claim 1, Wherein, when the comparing and judgingsection judged that the page size information agrees with the mediumsize information, the expanding section expands the image data andgenerates print data corresponding to the record medium, the extractingsection extracts print data inside of region corresponding to the printregion from the generated print data.
 7. The print controlling apparatusaccording to claim 1, further comprising: an existence/inexistencejudging portion that is used for judging existence/inexistence ofdrawing image in a predetermined region, wherein, when the comparing andjudging section judged that the page size information agrees with themedium size information, the expanding section expands the image dataand generates print data corresponding to the record medium, theexistence/inexistence judging portion judges existence/inexistence ofdrawing image outside of the print region of the generated print data,when the existence/inexistence judging portion judged that the drawingimage is inexistent, the extracting section extracts print data insideof region corresponding to the print region from the generated printdata.
 8. The print controlling apparatus according to claim 7, furthercomprising: a third obtaining section that obtains region sizeinformation representing region size of the print region when theexistence/inexistence judging portion judged that the drawing image isexistent; and a magnification/reduction generating section thatmagnifies/reduces the print data according to the region size andgenerates print data inside of region on the basis of the region sizeinformation and the page size information that were obtained.
 9. Theprint controlling apparatus according to claim 8, wherein themagnification/reduction generating section has a calculating portionthat calculates rate information representing a magnification/reductionrate of the print data on the basis of the region size information andthe page size information, and performs a magnification/reduction of theprint data toward the print data inside of region on the basis of thecalculated rate information.
 10. The print controlling apparatusaccording to claim 1, further comprising: a third obtaining section thatobtains region size information representing region size of the printregion when the comparing and judging section judged that the page sizeinformation does not agree with the medium size information; and amagnification/reduction generating section that magnifies/reduces theimage data according to the region size and generatesmagnification/reduction image data on the basis of the region sizeinformation and the page size information that were obtained, whereinthe expanding section expands the generated magnification/reductionimage data and generates print data inside of region corresponding tothe print region.
 11. The print controlling apparatus according to claim10, wherein the magnification/reduction generating section has acalculating portion that calculates rate information representingmagnification/reduction rate of the image data on the basis of theregion size information and the page size information, and performs amagnification/reduction of the image data toward themagnification/reduction image data on the basis of the calculated rateinformation.
 12. The print controlling apparatus according to claim 1,further comprising: a magnification/reduction generating section thatmagnifies/reduces the image data according to the medium size andgenerates magnification/reduction image data on the basis of the pagesize information and the medium size information when the comparing andjudging section judged the page size information does not agree with themedium size information; and an existence/inexistence judging portionthat is used for judging existence/inexistence of drawing image in apredetermined region, wherein the expanding section expands thegenerated magnification/reduction image data and generates print datacorresponding to the record medium, the existence/inexistence judgingportion judges existence/inexistence of drawing image outside of theprint region of the generated print data, when the existence/inexistencejudging portion judged that the drawing image is inexistent, theextracting section extracts print data inside of region corresponding tothe print region from the print data.
 13. The print controllingapparatus according to claim 12, wherein the magnification/reductiongenerating section has a calculating portion that calculates rateinformation representing magnification/reduction rate of the image dataon the basis of the page size information and the medium sizeinformation, and performs magnification/reduction of the image datatoward the magnification/reduction image data on the basis of thecalculated rate information.
 14. The print controlling apparatusaccording to claim 12, further comprising: a third obtaining sectionthat obtains region size information representing region size of theprint region when the existence/inexistence judging portion judged thatthe drawing image is existent, wherein the magnification/reductiongenerating section magnifies/reduces the print data according to theregion size and generates print data inside of region on the basis ofthe region size information and the medium size information that wereobtained.
 15. The print controlling apparatus according to claim 14,wherein the magnification/reduction generating section has a calculatingportion that calculates rate information representingmagnification/reduction rate of the print data on the basis of theregion size information and the medium size information, and performsmagnification/reduction of the print data toward the print data insideof region on the basis of the calculated rate information.